package com.cheer.dto;

import cn.hutool.core.date.DateUtil;
import com.cheer.entity.Admin;
import com.cheer.entity.Organization;
import com.cheer.vo.StandingBookReviewLogVO;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class StandingBookReviewLogDTO {

    private String action;

    private String orgName;

    private String contactPerson;

    private String cause;

    private Date createTime;

    public StandingBookReviewLogVO build() {
        StandingBookReviewLogVO logVO = new StandingBookReviewLogVO();
        logVO.setReviewStatus(action);
        logVO.setOrgName(orgName);
        logVO.setReviewer(contactPerson);
        logVO.setReviewTime(DateUtil.formatDateTime(createTime));
        logVO.setCause(cause);
        return logVO;
    }
}
